package com.project.service.impl.backend.basic;

import java.util.List;

import com.project.dao.LimitDao;
import com.project.dao.bean.Limits;
import com.project.service.backend.basic.LimitService;

/**
 * 后台权限管理 Service Impl
 * @author Sn
 *
 */
public class LimitServiceImpl implements LimitService 
{
	
	private LimitDao limitDao;

	@Override
	public void save(Limits limits) throws Exception 
	{
		limitDao.save(limits);
	}

	@Override
	public void update(Limits limits) throws Exception 
	{
		limitDao.update(limits);
	}

	@Override
	public void delete(Limits limits) throws Exception 
	{
		limitDao.delete(limits);
	}

	@Override
	public List<Limits> findLimitBypg(Limits limits) throws Exception 
	{
		return limitDao.getLimits(limits);
	}

	@Override
	public Limits getLimitById(Limits limits) throws Exception 
	{
		return limitDao.getLimitById(limits);
	}

	@Override
	public List<Limits> findLimit() throws Exception 
	{
		return limitDao.getLimits();
	}
	
	public void setLimitDao(LimitDao limitDao) 
	{
		this.limitDao = limitDao;
	}

}
